package cn.egame.extraction.dao;

import cn.egame.common.data.BaseDao;
import cn.egame.common.exception.ExceptionCommonBase;

public class GameServiceDao extends BaseDao {

	public GameServiceDao() throws ExceptionCommonBase {
		super("egame_game");
	}

	public int getGameStatusByGId(int gId) throws ExceptionCommonBase {
		String sql = "select game_status from t_game where g_id=" + gId;
		return this.getInt(sql);
	}

	
	public int getGameNetworkTypeByGId(int gId) throws ExceptionCommonBase {
		String sql = "select network_type from t_game where g_id=" + gId;
		return this.getInt(sql);
	}
}
